package dk.dashboardFP.panels.loggerPanel {
	import dk.dashboardFP.interactionElementFramwork.smartButton.SmartButton;
	import dk.dashboardFP.shapes.Circle;

	/**
	 * @author josef
	 */
	public class LevelButton extends SmartButton {
		private var _back : Circle;
		private var _hit : Circle;
		private var _activeMark : LogLevelActiveMarkAsset;

		public function LevelButton(oRefrenceObject : Object = null) {
			super(oRefrenceObject);
			setupElements();
		}

		protected function setupElements() : void {
			
			
			// back 
			_back = new Circle(3, 0x333333);
			addChild(_back);
			
			// hit 
			_hit = new Circle(5, 0xff0000, 0);
			addChild(_hit);
			
			// active mark 
			_activeMark=new LogLevelActiveMarkAsset();
		}

		override public function select() : void {
			super.select();
			addChild(_activeMark);
		}

		override public function deSelect() : void {
			super.deSelect();
			if (contains(_activeMark)) {
				removeChild(_activeMark);
			}
		}
	}
}
